// This will create a basic “lightbox” interface using AJAX Requests and HTML masking.
// From http://www.nofunc.com/Sexy_Box/
function $S(v){return($(v).style)}
function agent(v){return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0))}
function isset(v){return((typeof(v)=='undefined'||v.length==0)?false:true)}
function XYwin(v){var z=agent('msie')?Array(document.body.clientHeight,document.body.clientWidth):Array(window.innerHeight,window.innerWidth);return(isset(v)?z[v]:z)}
function sexyBOX(v,b){$S('sexyBG').height=XYwin(0)+'px';$S('sexyBG').display='block';$('sexyBOX').innerHTML=v;$S('sexyBOX').left=Math.round((XYwin(1)-b)/2)+'px'; $S('sexyBOX').width=b+'px';$S('sexyBOX').display='block'}
function sexyHIDE(){$S('sexyBG').display='none';$S('sexyBOX').display='none'}